package org.komarichin.jpa.entity;

import java.util.Date;

/**
 * Created by IntelliJ IDEA.
 * User:  Michael Komarichin
 * Date: 28.09.2009
 * Time: 11:25:43
 */
public interface INews extends IGoogleEntity {
//    /**
//     * @return id news
//     */
//    Long getId();
//
//    /**
//     * @param id new id for news object
//     */
//    void setId(Long id);

    /**
     * @return news name
     */
    String getName();

    /**
     * @param name new name for news
     */
    void setName(String name);

    /**
     * @return title news
     */
    String getTitle();

    /**
     * @param title new title for news
     */
    void setTitle(String title);

    /**
     * @return source news
     */
    String getSource();

    /**
     * @param source new source news
     */
    void setSource(String source);

    /**
     * @return key words of news
     */
    String getKeyWords();

    /**
     * @param keyWords new key words for news
     */
    void setKeyWords(String keyWords);

    /**
     * @return news description
     */
    String getDescription();

    /**
     * @param description new description for news
     */
    void setDescription(String description);

    /**
     * @return news content
     */
    String getContent();

    /**
     * @param content new content for news
     */
    void setContent(String content);

    /**
     * @return create date of news
     */
    Date getCreate();

    /**
     * @param create new create date for news, default system date
     */
    void setCreate(Date create);

    /**
     * @return update date of news
     */
    Date getUpdate();

    /**
     * @param update new update date for news,
     *               when news create update date equals create date,
     *               but when news update, update date change to sysdate
     */
    void setUpdate(Date update);

    /**
     * @return user who created news
     */
    public Long getUser();

    /**
     * @param user user who created news
     */
    public void setUser(Long user);
}
